package cn.Alibaba.system.mapper;

import cn.Alibaba.system.domain.Role;
import cn.Alibaba.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tom
 * @since 2022-08-02
 */
public interface RoleMapper extends BaseMapper<Role> {


    void addRoleMenu(@Param("id")Long id, @Param("menus") List<Long> menus);

    void addRolePermissions(@Param("id")Long id,@Param("permissions") List<Long> permissions);

    void delRoleMenuByRoleId(Long id);

    void delEmployeeRoleByRoleId(Long id);

    void delRolePermissionByRoleIdRoleId(Long id);
}
